package designpattern.responsibility.dem01;


/**
 * @author cyt
 * @create 2020-07-20 14:30
 */
public class Test {
    public static void main(String[] args) {
        OneApprover oneApprover = new OneApprover("老大");
        TwoApprover twoApprover = new TwoApprover("老二");
        ThreeApprover threeApprover = new ThreeApprover("老三");

        oneApprover.setApprover(twoApprover);
        twoApprover.setApprover(threeApprover);
        threeApprover.setApprover(oneApprover);

        Request request = new Request(1, 100, 20);
        oneApprover.processRequest(request);
    }
}
